package log

import "go.uber.org/zap"

// 日志
var Logger, _ = newLogger()

func newLogger(options ...zap.Option) (*zap.Logger, error) {
	c := zap.NewDevelopmentConfig()
	c.Encoding = "json"
	c.OutputPaths = []string{"stdout", "ghc.log"}
	return c.Build(options...)
}
